Skip to main content

Pushing them to dockerhub

Here are the steps:

1) Create a Tag with your user name

So when you run docker ps to list your images, you should see your image

/~: docker ps

imageName

Now you must create a tag of that imagename with your dockerhub username at the front. In other words we are just copying it with an appropriate name.

docker tag imageName:0.0.1 yourUsername/imagename:0.0.1

Now you'll have an image with this name: yourUsername/imagename:0.0.1

2) Login to docker hub

Run: Docker login

This will ask you to sign in, occasionally you might need a token. this can be obtained from your settings.

3) Create a docker Repository,

Go to https://hub.docker.com/repositories/ and click create repository, make sure to use the imagename,

4) Docker push

finally run docker push yourUsername/imagename:0.0.1 , this will push it to the repository you created